

/* this ALWAYS GENERATED file contains the definitions for the interfaces */


 /* File created by MIDL compiler version 6.00.0366 */
/* at Wed Oct 14 09:26:05 2009
 */
/* Compiler settings for .\AddinManager.idl:
    Oicf, W1, Zp8, env=Win32 (32b run)
    protocol : dce , ms_ext, c_ext
    error checks: allocation ref bounds_check enum stub_data 
    VC __declspec() decoration level: 
         __declspec(uuid()), __declspec(selectany), __declspec(novtable)
         DECLSPEC_UUID(), MIDL_INTERFACE()
*/
//@@MIDL_FILE_HEADING(  )

#pragma warning( disable: 4049 )  /* more than 64k source lines */


/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 440
#endif

#include "rpc.h"
#include "rpcndr.h"

#ifndef __RPCNDR_H_VERSION__
#error this stub requires an updated version of <rpcndr.h>
#endif // __RPCNDR_H_VERSION__

#ifndef COM_NO_WINDOWS_H
#include "windows.h"
#include "ole2.h"
#endif /*COM_NO_WINDOWS_H*/

#ifndef __AddinManager_h__
#define __AddinManager_h__

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif

/* Forward Declarations */ 

#ifndef __IFrameWork_FWD_DEFINED__
#define __IFrameWork_FWD_DEFINED__
typedef interface IFrameWork IFrameWork;
#endif 	/* __IFrameWork_FWD_DEFINED__ */


#ifndef __IFrameworkAddin_FWD_DEFINED__
#define __IFrameworkAddin_FWD_DEFINED__
typedef interface IFrameworkAddin IFrameworkAddin;
#endif 	/* __IFrameworkAddin_FWD_DEFINED__ */


#ifndef __IManager_FWD_DEFINED__
#define __IManager_FWD_DEFINED__
typedef interface IManager IManager;
#endif 	/* __IManager_FWD_DEFINED__ */


#ifndef ___IManagerEvents_FWD_DEFINED__
#define ___IManagerEvents_FWD_DEFINED__
typedef interface _IManagerEvents _IManagerEvents;
#endif 	/* ___IManagerEvents_FWD_DEFINED__ */


#ifndef __Manager_FWD_DEFINED__
#define __Manager_FWD_DEFINED__

#ifdef __cplusplus
typedef class Manager Manager;
#else
typedef struct Manager Manager;
#endif /* __cplusplus */

#endif 	/* __Manager_FWD_DEFINED__ */


#ifndef ___IFrameWorkEvents_FWD_DEFINED__
#define ___IFrameWorkEvents_FWD_DEFINED__
typedef interface _IFrameWorkEvents _IFrameWorkEvents;
#endif 	/* ___IFrameWorkEvents_FWD_DEFINED__ */


#ifndef __FrameWork_FWD_DEFINED__
#define __FrameWork_FWD_DEFINED__

#ifdef __cplusplus
typedef class FrameWork FrameWork;
#else
typedef struct FrameWork FrameWork;
#endif /* __cplusplus */

#endif 	/* __FrameWork_FWD_DEFINED__ */


/* header files for imported files */
#include "oaidl.h"
#include "ocidl.h"

#ifdef __cplusplus
extern "C"{
#endif 

void * __RPC_USER MIDL_user_allocate(size_t);
void __RPC_USER MIDL_user_free( void * ); 

/* interface __MIDL_itf_AddinManager_0000 */
/* [local] */ 

typedef struct tagAddinCommandInfo
    {
    int m_iToolbarIndex;
    UINT m_iSeparator;
    UINT m_iCommandID;
    UINT m_MenuStringsCount;
    BSTR m_strMenuString;
    BSTR m_strHelpString;
    BSTR m_strToolTip;
    BSTR m_strFunction;
    BSTR m_strShortCutKey;
    BSTR m_VBScript;
    BSTR *m_MenuStringsArray;
    } 	ADDINCOMMANDINFO;

typedef struct tagAddinfo
    {
    CLSID m_clsID;
    long m_lInstanceHandle;
    long m_lToobarRes;
    long m_hMenuhandle;
    BOOL m_bLoadAddin;
    UINT m_lToolbarButtonCount;
    UINT m_AddinCommadInfoCount;
    } 	ADDINFO;

typedef ADDINFO *LPADDINFO;

typedef struct tagAddinManager
    {
    DWORD m_dwCookie;
    BOOL m_bLoadAllAdins;
    UINT m_iBaseCommandID;
    long m_hMainWnd;
    long m_hInstance;
    LONG m_dwMainThreadID;
    LONG m_dwWorkThreadID;
    } 	ADDINMANAGER;

typedef ADDINMANAGER *LPADDINMANAGER;



extern RPC_IF_HANDLE __MIDL_itf_AddinManager_0000_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_AddinManager_0000_v0_0_s_ifspec;

#ifndef __IFrameWork_INTERFACE_DEFINED__
#define __IFrameWork_INTERFACE_DEFINED__

/* interface IFrameWork */
/* [unique][helpstring][nonextensible][dual][uuid][object] */ 


EXTERN_C const IID IID_IFrameWork;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("9DF7BB7F-4C4E-4B92-A176-83D6DDA28CBA")
    IFrameWork : public IDispatch
    {
    public:
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetAddInInfo( 
            long lSessionID,
            long lInstanceHandle,
            BSTR strXMLMenuToolbarIDCmdInfo,
            long lToobarRes) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE LoadAllAdins( 
            BSTR strAddinLoadingInfo) = 0;
        
        virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MainWnd( 
            /* [retval][out] */ long *pVal) = 0;
        
        virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MainWnd( 
            /* [in] */ long newVal) = 0;
        
        virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_hInstance( 
            /* [retval][out] */ long *pVal) = 0;
        
        virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_hInstance( 
            /* [in] */ long newVal) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SendStatus( 
            BSTR strStatus) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetPlugInInstances( 
            /* [out][in] */ int *nCount,
            /* [out][in] */ SAFEARRAY * *hInstArry) = 0;
        
        virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetAddinfo( 
            /* [in] */ long lSessionID,
            /* [retval][out] */ LPADDINFO *Addinfo) = 0;
        
        virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AddinfoManager( 
            /* [retval][out] */ ADDINMANAGER *AddinfoManager) = 0;
        
        virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_AddinfoManager( 
            /* [in] */ ADDINMANAGER AddinfoManager) = 0;
        
        virtual /* [id] */ HRESULT STDMETHODCALLTYPE LoggingService( 
            /* [in] */ BSTR LogMessageText) = 0;
        
    };
    
#else 	/* C style interface */

    typedef struct IFrameWorkVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            IFrameWork * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            IFrameWork * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            IFrameWork * This);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
            IFrameWork * This,
            /* [out] */ UINT *pctinfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
            IFrameWork * This,
            /* [in] */ UINT iTInfo,
            /* [in] */ LCID lcid,
            /* [out] */ ITypeInfo **ppTInfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
            IFrameWork * This,
            /* [in] */ REFIID riid,
            /* [size_is][in] */ LPOLESTR *rgszNames,
            /* [in] */ UINT cNames,
            /* [in] */ LCID lcid,
            /* [size_is][out] */ DISPID *rgDispId);
        
        /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
            IFrameWork * This,
            /* [in] */ DISPID dispIdMember,
            /* [in] */ REFIID riid,
            /* [in] */ LCID lcid,
            /* [in] */ WORD wFlags,
            /* [out][in] */ DISPPARAMS *pDispParams,
            /* [out] */ VARIANT *pVarResult,
            /* [out] */ EXCEPINFO *pExcepInfo,
            /* [out] */ UINT *puArgErr);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetAddInInfo )( 
            IFrameWork * This,
            long lSessionID,
            long lInstanceHandle,
            BSTR strXMLMenuToolbarIDCmdInfo,
            long lToobarRes);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *LoadAllAdins )( 
            IFrameWork * This,
            BSTR strAddinLoadingInfo);
        
        /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MainWnd )( 
            IFrameWork * This,
            /* [retval][out] */ long *pVal);
        
        /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MainWnd )( 
            IFrameWork * This,
            /* [in] */ long newVal);
        
        /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_hInstance )( 
            IFrameWork * This,
            /* [retval][out] */ long *pVal);
        
        /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_hInstance )( 
            IFrameWork * This,
            /* [in] */ long newVal);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SendStatus )( 
            IFrameWork * This,
            BSTR strStatus);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetPlugInInstances )( 
            IFrameWork * This,
            /* [out][in] */ int *nCount,
            /* [out][in] */ SAFEARRAY * *hInstArry);
        
        /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetAddinfo )( 
            IFrameWork * This,
            /* [in] */ long lSessionID,
            /* [retval][out] */ LPADDINFO *Addinfo);
        
        /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AddinfoManager )( 
            IFrameWork * This,
            /* [retval][out] */ ADDINMANAGER *AddinfoManager);
        
        /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AddinfoManager )( 
            IFrameWork * This,
            /* [in] */ ADDINMANAGER AddinfoManager);
        
        /* [id] */ HRESULT ( STDMETHODCALLTYPE *LoggingService )( 
            IFrameWork * This,
            /* [in] */ BSTR LogMessageText);
        
        END_INTERFACE
    } IFrameWorkVtbl;

    interface IFrameWork
    {
        CONST_VTBL struct IFrameWorkVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define IFrameWork_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define IFrameWork_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define IFrameWork_Release(This)	\
    (This)->lpVtbl -> Release(This)


#define IFrameWork_GetTypeInfoCount(This,pctinfo)	\
    (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)

#define IFrameWork_GetTypeInfo(This,iTInfo,lcid,ppTInfo)	\
    (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)

#define IFrameWork_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)	\
    (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)

#define IFrameWork_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)	\
    (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)


#define IFrameWork_SetAddInInfo(This,lSessionID,lInstanceHandle,strXMLMenuToolbarIDCmdInfo,lToobarRes)	\
    (This)->lpVtbl -> SetAddInInfo(This,lSessionID,lInstanceHandle,strXMLMenuToolbarIDCmdInfo,lToobarRes)

#define IFrameWork_LoadAllAdins(This,strAddinLoadingInfo)	\
    (This)->lpVtbl -> LoadAllAdins(This,strAddinLoadingInfo)

#define IFrameWork_get_MainWnd(This,pVal)	\
    (This)->lpVtbl -> get_MainWnd(This,pVal)

#define IFrameWork_put_MainWnd(This,newVal)	\
    (This)->lpVtbl -> put_MainWnd(This,newVal)

#define IFrameWork_get_hInstance(This,pVal)	\
    (This)->lpVtbl -> get_hInstance(This,pVal)

#define IFrameWork_put_hInstance(This,newVal)	\
    (This)->lpVtbl -> put_hInstance(This,newVal)

#define IFrameWork_SendStatus(This,strStatus)	\
    (This)->lpVtbl -> SendStatus(This,strStatus)

#define IFrameWork_GetPlugInInstances(This,nCount,hInstArry)	\
    (This)->lpVtbl -> GetPlugInInstances(This,nCount,hInstArry)

#define IFrameWork_GetAddinfo(This,lSessionID,Addinfo)	\
    (This)->lpVtbl -> GetAddinfo(This,lSessionID,Addinfo)

#define IFrameWork_get_AddinfoManager(This,AddinfoManager)	\
    (This)->lpVtbl -> get_AddinfoManager(This,AddinfoManager)

#define IFrameWork_put_AddinfoManager(This,AddinfoManager)	\
    (This)->lpVtbl -> put_AddinfoManager(This,AddinfoManager)

#define IFrameWork_LoggingService(This,LogMessageText)	\
    (This)->lpVtbl -> LoggingService(This,LogMessageText)

#endif /* COBJMACROS */


#endif 	/* C style interface */



/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IFrameWork_SetAddInInfo_Proxy( 
    IFrameWork * This,
    long lSessionID,
    long lInstanceHandle,
    BSTR strXMLMenuToolbarIDCmdInfo,
    long lToobarRes);


void __RPC_STUB IFrameWork_SetAddInInfo_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IFrameWork_LoadAllAdins_Proxy( 
    IFrameWork * This,
    BSTR strAddinLoadingInfo);


void __RPC_STUB IFrameWork_LoadAllAdins_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IFrameWork_get_MainWnd_Proxy( 
    IFrameWork * This,
    /* [retval][out] */ long *pVal);


void __RPC_STUB IFrameWork_get_MainWnd_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IFrameWork_put_MainWnd_Proxy( 
    IFrameWork * This,
    /* [in] */ long newVal);


void __RPC_STUB IFrameWork_put_MainWnd_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IFrameWork_get_hInstance_Proxy( 
    IFrameWork * This,
    /* [retval][out] */ long *pVal);


void __RPC_STUB IFrameWork_get_hInstance_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IFrameWork_put_hInstance_Proxy( 
    IFrameWork * This,
    /* [in] */ long newVal);


void __RPC_STUB IFrameWork_put_hInstance_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IFrameWork_SendStatus_Proxy( 
    IFrameWork * This,
    BSTR strStatus);


void __RPC_STUB IFrameWork_SendStatus_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IFrameWork_GetPlugInInstances_Proxy( 
    IFrameWork * This,
    /* [out][in] */ int *nCount,
    /* [out][in] */ SAFEARRAY * *hInstArry);


void __RPC_STUB IFrameWork_GetPlugInInstances_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [id] */ HRESULT STDMETHODCALLTYPE IFrameWork_GetAddinfo_Proxy( 
    IFrameWork * This,
    /* [in] */ long lSessionID,
    /* [retval][out] */ LPADDINFO *Addinfo);


void __RPC_STUB IFrameWork_GetAddinfo_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IFrameWork_get_AddinfoManager_Proxy( 
    IFrameWork * This,
    /* [retval][out] */ ADDINMANAGER *AddinfoManager);


void __RPC_STUB IFrameWork_get_AddinfoManager_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IFrameWork_put_AddinfoManager_Proxy( 
    IFrameWork * This,
    /* [in] */ ADDINMANAGER AddinfoManager);


void __RPC_STUB IFrameWork_put_AddinfoManager_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [id] */ HRESULT STDMETHODCALLTYPE IFrameWork_LoggingService_Proxy( 
    IFrameWork * This,
    /* [in] */ BSTR LogMessageText);


void __RPC_STUB IFrameWork_LoggingService_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);



#endif 	/* __IFrameWork_INTERFACE_DEFINED__ */


#ifndef __IFrameworkAddin_INTERFACE_DEFINED__
#define __IFrameworkAddin_INTERFACE_DEFINED__

/* interface IFrameworkAddin */
/* [unique][helpstring][uuid][object] */ 


EXTERN_C const IID IID_IFrameworkAddin;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("F3471680-AF52-4bd2-A207-09054C0BCF99")
    IFrameworkAddin : public IDispatch
    {
    public:
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Initialize( 
            /* [in] */ long lSessionID,
            /* [in] */ IFrameWork *pApp,
            /* [in] */ VARIANT bFirstTime) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EndInitialize( void) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Uninitialize( 
            /* [in] */ long lSessionID) = 0;
        
    };
    
#else 	/* C style interface */

    typedef struct IFrameworkAddinVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            IFrameworkAddin * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            IFrameworkAddin * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            IFrameworkAddin * This);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
            IFrameworkAddin * This,
            /* [out] */ UINT *pctinfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
            IFrameworkAddin * This,
            /* [in] */ UINT iTInfo,
            /* [in] */ LCID lcid,
            /* [out] */ ITypeInfo **ppTInfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
            IFrameworkAddin * This,
            /* [in] */ REFIID riid,
            /* [size_is][in] */ LPOLESTR *rgszNames,
            /* [in] */ UINT cNames,
            /* [in] */ LCID lcid,
            /* [size_is][out] */ DISPID *rgDispId);
        
        /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
            IFrameworkAddin * This,
            /* [in] */ DISPID dispIdMember,
            /* [in] */ REFIID riid,
            /* [in] */ LCID lcid,
            /* [in] */ WORD wFlags,
            /* [out][in] */ DISPPARAMS *pDispParams,
            /* [out] */ VARIANT *pVarResult,
            /* [out] */ EXCEPINFO *pExcepInfo,
            /* [out] */ UINT *puArgErr);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Initialize )( 
            IFrameworkAddin * This,
            /* [in] */ long lSessionID,
            /* [in] */ IFrameWork *pApp,
            /* [in] */ VARIANT bFirstTime);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EndInitialize )( 
            IFrameworkAddin * This);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Uninitialize )( 
            IFrameworkAddin * This,
            /* [in] */ long lSessionID);
        
        END_INTERFACE
    } IFrameworkAddinVtbl;

    interface IFrameworkAddin
    {
        CONST_VTBL struct IFrameworkAddinVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define IFrameworkAddin_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define IFrameworkAddin_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define IFrameworkAddin_Release(This)	\
    (This)->lpVtbl -> Release(This)


#define IFrameworkAddin_GetTypeInfoCount(This,pctinfo)	\
    (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)

#define IFrameworkAddin_GetTypeInfo(This,iTInfo,lcid,ppTInfo)	\
    (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)

#define IFrameworkAddin_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)	\
    (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)

#define IFrameworkAddin_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)	\
    (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)


#define IFrameworkAddin_Initialize(This,lSessionID,pApp,bFirstTime)	\
    (This)->lpVtbl -> Initialize(This,lSessionID,pApp,bFirstTime)

#define IFrameworkAddin_EndInitialize(This)	\
    (This)->lpVtbl -> EndInitialize(This)

#define IFrameworkAddin_Uninitialize(This,lSessionID)	\
    (This)->lpVtbl -> Uninitialize(This,lSessionID)

#endif /* COBJMACROS */


#endif 	/* C style interface */



/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IFrameworkAddin_Initialize_Proxy( 
    IFrameworkAddin * This,
    /* [in] */ long lSessionID,
    /* [in] */ IFrameWork *pApp,
    /* [in] */ VARIANT bFirstTime);


void __RPC_STUB IFrameworkAddin_Initialize_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IFrameworkAddin_EndInitialize_Proxy( 
    IFrameworkAddin * This);


void __RPC_STUB IFrameworkAddin_EndInitialize_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IFrameworkAddin_Uninitialize_Proxy( 
    IFrameworkAddin * This,
    /* [in] */ long lSessionID);


void __RPC_STUB IFrameworkAddin_Uninitialize_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);



#endif 	/* __IFrameworkAddin_INTERFACE_DEFINED__ */


#ifndef __IManager_INTERFACE_DEFINED__
#define __IManager_INTERFACE_DEFINED__

/* interface IManager */
/* [unique][helpstring][nonextensible][dual][uuid][object] */ 


EXTERN_C const IID IID_IManager;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("D48AE3A3-C57B-4BC6-9859-554D3FD6F6F9")
    IManager : public IDispatch
    {
    public:
        virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_FrameWork( 
            /* [in] */ IFrameWork *newVal) = 0;
        
        virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_FrameWork( 
            /* [retval][out] */ IFrameWork **pVal) = 0;
        
        virtual /* [id] */ HRESULT STDMETHODCALLTYPE LoadAllAddins( 
            /* [retval][out] */ long *addinCount) = 0;
        
        virtual /* [id] */ HRESULT STDMETHODCALLTYPE UnLoadAllAddins( void) = 0;
        
        virtual /* [id] */ HRESULT STDMETHODCALLTYPE EnableAddin( 
            /* [in] */ IFrameworkAddin *pAddin) = 0;
        
        virtual /* [id] */ HRESULT STDMETHODCALLTYPE DisableAddin( 
            /* [in] */ IFrameworkAddin *pAddin) = 0;
        
    };
    
#else 	/* C style interface */

    typedef struct IManagerVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            IManager * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            IManager * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            IManager * This);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
            IManager * This,
            /* [out] */ UINT *pctinfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
            IManager * This,
            /* [in] */ UINT iTInfo,
            /* [in] */ LCID lcid,
            /* [out] */ ITypeInfo **ppTInfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
            IManager * This,
            /* [in] */ REFIID riid,
            /* [size_is][in] */ LPOLESTR *rgszNames,
            /* [in] */ UINT cNames,
            /* [in] */ LCID lcid,
            /* [size_is][out] */ DISPID *rgDispId);
        
        /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
            IManager * This,
            /* [in] */ DISPID dispIdMember,
            /* [in] */ REFIID riid,
            /* [in] */ LCID lcid,
            /* [in] */ WORD wFlags,
            /* [out][in] */ DISPPARAMS *pDispParams,
            /* [out] */ VARIANT *pVarResult,
            /* [out] */ EXCEPINFO *pExcepInfo,
            /* [out] */ UINT *puArgErr);
        
        /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FrameWork )( 
            IManager * This,
            /* [in] */ IFrameWork *newVal);
        
        /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FrameWork )( 
            IManager * This,
            /* [retval][out] */ IFrameWork **pVal);
        
        /* [id] */ HRESULT ( STDMETHODCALLTYPE *LoadAllAddins )( 
            IManager * This,
            /* [retval][out] */ long *addinCount);
        
        /* [id] */ HRESULT ( STDMETHODCALLTYPE *UnLoadAllAddins )( 
            IManager * This);
        
        /* [id] */ HRESULT ( STDMETHODCALLTYPE *EnableAddin )( 
            IManager * This,
            /* [in] */ IFrameworkAddin *pAddin);
        
        /* [id] */ HRESULT ( STDMETHODCALLTYPE *DisableAddin )( 
            IManager * This,
            /* [in] */ IFrameworkAddin *pAddin);
        
        END_INTERFACE
    } IManagerVtbl;

    interface IManager
    {
        CONST_VTBL struct IManagerVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define IManager_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define IManager_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define IManager_Release(This)	\
    (This)->lpVtbl -> Release(This)


#define IManager_GetTypeInfoCount(This,pctinfo)	\
    (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)

#define IManager_GetTypeInfo(This,iTInfo,lcid,ppTInfo)	\
    (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)

#define IManager_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)	\
    (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)

#define IManager_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)	\
    (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)


#define IManager_put_FrameWork(This,newVal)	\
    (This)->lpVtbl -> put_FrameWork(This,newVal)

#define IManager_get_FrameWork(This,pVal)	\
    (This)->lpVtbl -> get_FrameWork(This,pVal)

#define IManager_LoadAllAddins(This,addinCount)	\
    (This)->lpVtbl -> LoadAllAddins(This,addinCount)

#define IManager_UnLoadAllAddins(This)	\
    (This)->lpVtbl -> UnLoadAllAddins(This)

#define IManager_EnableAddin(This,pAddin)	\
    (This)->lpVtbl -> EnableAddin(This,pAddin)

#define IManager_DisableAddin(This,pAddin)	\
    (This)->lpVtbl -> DisableAddin(This,pAddin)

#endif /* COBJMACROS */


#endif 	/* C style interface */



/* [id][propput] */ HRESULT STDMETHODCALLTYPE IManager_put_FrameWork_Proxy( 
    IManager * This,
    /* [in] */ IFrameWork *newVal);


void __RPC_STUB IManager_put_FrameWork_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [id][propget] */ HRESULT STDMETHODCALLTYPE IManager_get_FrameWork_Proxy( 
    IManager * This,
    /* [retval][out] */ IFrameWork **pVal);


void __RPC_STUB IManager_get_FrameWork_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [id] */ HRESULT STDMETHODCALLTYPE IManager_LoadAllAddins_Proxy( 
    IManager * This,
    /* [retval][out] */ long *addinCount);


void __RPC_STUB IManager_LoadAllAddins_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [id] */ HRESULT STDMETHODCALLTYPE IManager_UnLoadAllAddins_Proxy( 
    IManager * This);


void __RPC_STUB IManager_UnLoadAllAddins_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [id] */ HRESULT STDMETHODCALLTYPE IManager_EnableAddin_Proxy( 
    IManager * This,
    /* [in] */ IFrameworkAddin *pAddin);


void __RPC_STUB IManager_EnableAddin_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [id] */ HRESULT STDMETHODCALLTYPE IManager_DisableAddin_Proxy( 
    IManager * This,
    /* [in] */ IFrameworkAddin *pAddin);


void __RPC_STUB IManager_DisableAddin_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);



#endif 	/* __IManager_INTERFACE_DEFINED__ */



#ifndef __AddinManagerLib_LIBRARY_DEFINED__
#define __AddinManagerLib_LIBRARY_DEFINED__

/* library AddinManagerLib */
/* [helpstring][version][uuid] */ 


EXTERN_C const IID LIBID_AddinManagerLib;

#ifndef ___IManagerEvents_DISPINTERFACE_DEFINED__
#define ___IManagerEvents_DISPINTERFACE_DEFINED__

/* dispinterface _IManagerEvents */
/* [helpstring][uuid] */ 


EXTERN_C const IID DIID__IManagerEvents;

#if defined(__cplusplus) && !defined(CINTERFACE)

    MIDL_INTERFACE("24A94400-2C54-46D7-8F77-DD624326F55D")
    _IManagerEvents : public IDispatch
    {
    };
    
#else 	/* C style interface */

    typedef struct _IManagerEventsVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            _IManagerEvents * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            _IManagerEvents * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            _IManagerEvents * This);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
            _IManagerEvents * This,
            /* [out] */ UINT *pctinfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
            _IManagerEvents * This,
            /* [in] */ UINT iTInfo,
            /* [in] */ LCID lcid,
            /* [out] */ ITypeInfo **ppTInfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
            _IManagerEvents * This,
            /* [in] */ REFIID riid,
            /* [size_is][in] */ LPOLESTR *rgszNames,
            /* [in] */ UINT cNames,
            /* [in] */ LCID lcid,
            /* [size_is][out] */ DISPID *rgDispId);
        
        /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
            _IManagerEvents * This,
            /* [in] */ DISPID dispIdMember,
            /* [in] */ REFIID riid,
            /* [in] */ LCID lcid,
            /* [in] */ WORD wFlags,
            /* [out][in] */ DISPPARAMS *pDispParams,
            /* [out] */ VARIANT *pVarResult,
            /* [out] */ EXCEPINFO *pExcepInfo,
            /* [out] */ UINT *puArgErr);
        
        END_INTERFACE
    } _IManagerEventsVtbl;

    interface _IManagerEvents
    {
        CONST_VTBL struct _IManagerEventsVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define _IManagerEvents_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define _IManagerEvents_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define _IManagerEvents_Release(This)	\
    (This)->lpVtbl -> Release(This)


#define _IManagerEvents_GetTypeInfoCount(This,pctinfo)	\
    (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)

#define _IManagerEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo)	\
    (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)

#define _IManagerEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)	\
    (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)

#define _IManagerEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)	\
    (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)

#endif /* COBJMACROS */


#endif 	/* C style interface */


#endif 	/* ___IManagerEvents_DISPINTERFACE_DEFINED__ */


EXTERN_C const CLSID CLSID_Manager;

#ifdef __cplusplus

class DECLSPEC_UUID("B481146D-D0DC-4399-A36A-A26B4EC507B7")
Manager;
#endif

#ifndef ___IFrameWorkEvents_DISPINTERFACE_DEFINED__
#define ___IFrameWorkEvents_DISPINTERFACE_DEFINED__

/* dispinterface _IFrameWorkEvents */
/* [helpstring][uuid] */ 


EXTERN_C const IID DIID__IFrameWorkEvents;

#if defined(__cplusplus) && !defined(CINTERFACE)

    MIDL_INTERFACE("74ADD124-3A2B-4766-98FF-E66EA3B7E1CA")
    _IFrameWorkEvents : public IDispatch
    {
    };
    
#else 	/* C style interface */

    typedef struct _IFrameWorkEventsVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            _IFrameWorkEvents * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            _IFrameWorkEvents * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            _IFrameWorkEvents * This);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
            _IFrameWorkEvents * This,
            /* [out] */ UINT *pctinfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
            _IFrameWorkEvents * This,
            /* [in] */ UINT iTInfo,
            /* [in] */ LCID lcid,
            /* [out] */ ITypeInfo **ppTInfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
            _IFrameWorkEvents * This,
            /* [in] */ REFIID riid,
            /* [size_is][in] */ LPOLESTR *rgszNames,
            /* [in] */ UINT cNames,
            /* [in] */ LCID lcid,
            /* [size_is][out] */ DISPID *rgDispId);
        
        /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
            _IFrameWorkEvents * This,
            /* [in] */ DISPID dispIdMember,
            /* [in] */ REFIID riid,
            /* [in] */ LCID lcid,
            /* [in] */ WORD wFlags,
            /* [out][in] */ DISPPARAMS *pDispParams,
            /* [out] */ VARIANT *pVarResult,
            /* [out] */ EXCEPINFO *pExcepInfo,
            /* [out] */ UINT *puArgErr);
        
        END_INTERFACE
    } _IFrameWorkEventsVtbl;

    interface _IFrameWorkEvents
    {
        CONST_VTBL struct _IFrameWorkEventsVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define _IFrameWorkEvents_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define _IFrameWorkEvents_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define _IFrameWorkEvents_Release(This)	\
    (This)->lpVtbl -> Release(This)


#define _IFrameWorkEvents_GetTypeInfoCount(This,pctinfo)	\
    (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)

#define _IFrameWorkEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo)	\
    (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)

#define _IFrameWorkEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)	\
    (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)

#define _IFrameWorkEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)	\
    (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)

#endif /* COBJMACROS */


#endif 	/* C style interface */


#endif 	/* ___IFrameWorkEvents_DISPINTERFACE_DEFINED__ */


EXTERN_C const CLSID CLSID_FrameWork;

#ifdef __cplusplus

class DECLSPEC_UUID("F3FCEB36-9AEC-4764-888E-AF8E3C5730E2")
FrameWork;
#endif
#endif /* __AddinManagerLib_LIBRARY_DEFINED__ */

/* Additional Prototypes for ALL interfaces */

unsigned long             __RPC_USER  BSTR_UserSize(     unsigned long *, unsigned long            , BSTR * ); 
unsigned char * __RPC_USER  BSTR_UserMarshal(  unsigned long *, unsigned char *, BSTR * ); 
unsigned char * __RPC_USER  BSTR_UserUnmarshal(unsigned long *, unsigned char *, BSTR * ); 
void                      __RPC_USER  BSTR_UserFree(     unsigned long *, BSTR * ); 

unsigned long             __RPC_USER  LPSAFEARRAY_UserSize(     unsigned long *, unsigned long            , LPSAFEARRAY * ); 
unsigned char * __RPC_USER  LPSAFEARRAY_UserMarshal(  unsigned long *, unsigned char *, LPSAFEARRAY * ); 
unsigned char * __RPC_USER  LPSAFEARRAY_UserUnmarshal(unsigned long *, unsigned char *, LPSAFEARRAY * ); 
void                      __RPC_USER  LPSAFEARRAY_UserFree(     unsigned long *, LPSAFEARRAY * ); 

unsigned long             __RPC_USER  VARIANT_UserSize(     unsigned long *, unsigned long            , VARIANT * ); 
unsigned char * __RPC_USER  VARIANT_UserMarshal(  unsigned long *, unsigned char *, VARIANT * ); 
unsigned char * __RPC_USER  VARIANT_UserUnmarshal(unsigned long *, unsigned char *, VARIANT * ); 
void                      __RPC_USER  VARIANT_UserFree(     unsigned long *, VARIANT * ); 

/* end of Additional Prototypes */

#ifdef __cplusplus
}
#endif

#endif


